import axios from "axios";

//读API
const readaxios = axios.create({
  baseURL: "http://localhost:5056/",
 timeout: 15000,
})

//读API请求拦截
readaxios.interceptors.request.use(config => {
  
  return config
}, error => {
  return Promise.reject(error)
}
)

// 写API
const writeaxios = axios.create({
   baseURL: "http://localhost:5057/",
 timeout: 15000,
})

// 写API请求拦截
writeaxios.interceptors.request.use(config => {

  return config
}), function(error:any) {
  return Promise.reject(error)
}



// export default readaxios;
export   {readaxios,writeaxios};